/* 全局样式 */
body {
    font-family: "SimSun", "宋体", serif;
    background-color: #f9f5ef;
    padding-top: 70px; /* 为固定导航栏留出空间 */
    color: #333;
}

/* 次级导航栏容器 */
.secondary-nav-container {
    background-color: #f5e8d0;
    padding: 10px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #d4b483;
}

/* 面包屑导航 */
.breadcrumb {
    background-color: transparent;
    padding: 0.75rem 0;
}

.breadcrumb-item a {
    color: #8b6b47;
}

.breadcrumb-item.active {
    color: #543e23;
}

/* 传统药丸式导航 */
.traditional-pills {
    display: flex;
    gap: 5px;
}

.traditional-pills .nav-item {
    position: relative;
}

.traditional-pills .nav-link {
    color: #2A3547;
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    gap: 8px;
}

.traditional-pills .nav-link i {
    font-size: 1.1rem;
}

.traditional-pills .nav-link:hover {
    color: #9A1F1A;
    border-color: #D4B16A;
    background: rgba(212, 177, 106, 0.1);
}

.traditional-pills .nav-link.active {
    background: #9A1F1A;
    color: #F8F4E9;
    box-shadow: 0 4px 8px rgba(154, 31, 26, 0.2);
}

.traditional-pills .nav-link.active::after {
    content: "";
    position: absolute;
    bottom: -16px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 10px solid #F8F4E9;
    z-index: 10;
}


/* 商品主容器 */
.product-container {
    max-width: 1200px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

/* 商品图片轮播 */
#productCarousel {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(139, 90, 43, 0.7);
    padding: 15px;
    border-radius: 50%;
}

/* 商品信息区域 */
.product-info {
    padding: 0 30px;
}

.product-title {
    color: #6d4c3d;
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 15px;
    border-bottom: 1px solid #e8d5b5;
    padding-bottom: 10px;
}

.product-meta {
    color: #777;
    font-size: 14px;
    margin-bottom: 15px;
}

.product-price {
    margin: 20px 0;
}

.current-price {
    color: #d9534f;
    font-size: 24px;
    font-weight: bold;
    margin-right: 15px;
}

.original-price {
    color: #999;
    text-decoration: line-through;
    font-size: 16px;
}

.product-promo {
    margin-bottom: 25px;
}

/* 商品参数 */
.product-params {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.product-params h3 {
    font-size: 18px;
    color: #6d4c3d;
    margin-bottom: 10px;
    border-bottom: 1px dashed #d4b483;
    padding-bottom: 5px;
}

.product-params ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.product-params li {
    margin-bottom: 8px;
    font-size: 15px;
}

/* 商品选项 */
.product-variants {
    margin-bottom: 30px;
}

.variant-option {
    margin-bottom: 20px;
}

.variant-option label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #6d4c3d;
}

.variant-choices {
    display: flex;
    gap: 10px;
}

.variant-choices button {
    min-width: 60px;
}

.variant-choices button.active {
    background-color: #8b5a2b;
    color: white;
    border-color: #8b5a2b;
}

.quantity-selector {
    display: flex;
    align-items: center;
    max-width: 120px;
}

.quantity-input {
    width: 50px;
    text-align: center;
    margin: 0 5px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 5px;
}

/* 商品操作按钮 */
.product-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
}

.btn-buy {
    background-color: #8b5a2b;
    border-color: #8b5a2b;
    padding: 10px 30px;
    font-weight: bold;
}

.btn-buy:hover {
    background-color: #6d4c3d;
    border-color: #6d4c3d;
}

.btn-cart {
    padding: 10px 30px;
    font-weight: bold;
    color: #8b5a2b;
    border-color: #8b5a2b;
}

.btn-cart:hover {
    background-color: #f5e8d0;
    color: #6d4c3d;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .breadcrumb-nav {
        margin: 0 15px 15px;
    }

    .product-info {
        padding: 0 15px;
    }

    .product-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-buy, .btn-cart {
        width: 100%;
    }
}
.footer-title {
    color: #D4B16A;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 15px;
}

.footer-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: #9A1F1A;
}
